import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2023-10-31
 * Time: 13:53
 */
public class Test {
    public static int recursion3(int x) {
        if(x == 1) {
            System.out.print(x+"*");
            return x;
        }
        System.out.print(x+"*");
        return x * recursion3(x - 1);
        //System.out.println(x % 10);

    }
    public static void main(String[] args) {
        Scanner input2 = new Scanner(System.in);
        int n = input2.nextInt();
        int ret = recursion3(n);
        System.out.println(ret);
    }

    public static int recursion2(int x) {
        if(x / 10 == 0) {
            System.out.print(x+" ");
            return 0;
        }
        //System.out.println(x % 10);
        recursion2(x / 10);
        System.out.print(x % 10+" ");
        return 0;
    }
    public static void main15(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        recursion2(n);
        //System.out.println(ret);
    }

    public static int recursion( int x) {
     if(x / 10 == 0) {
         return x;
     }
     return x % 10 + recursion(x / 10);
    }
    public static void main14(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int ret = recursion(n);
        System.out.println(ret);
    }
    public static int mysum(int x,int y) {
        return x + y;
    }
    public static double mysum(double x, double y, double k) {
        return x + y + k;
    }
    public static void main12(String[] args) {
        Scanner input = new Scanner(System.in);
        double a = input.nextDouble();
        double b = input.nextDouble();
        double c = input.nextDouble();
        //int ret = mysum((int)a,(int)b);
        double ret = mysum(a,b,c);
        System.out.println(ret);
    }

    public static int mymax(int x, int y) {
        return (x > y ? x : y);
    }
    public static double mymax(double x , double y ,double k) {
        double temp = (x > y ? x : y);
        return (temp > k? temp :k);
    }
    public static void main11(String[] args) {
        Scanner input = new Scanner(System.in);
        //int a = input.nextInt();
        //int b = input.nextInt();
        double a = input.nextDouble();
        double b = input.nextDouble();
        double c = input.nextDouble();
        int ret1 = mymax((int)a,(int)b);
        double ret2 = mymax(a,b,c);
        //System.out.println(ret1);
        System.out.println(ret2);
    }
    public static int FiB(int x) {
        if(x == 1 ||x == 2 ) {
            return 1;
        }
        return FiB(x-1)+FiB(x-2);
    }
    public static void main13(String[] args) { // 1 1 2 3 5 8 13 21
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int ret = FiB(n);
        System.out.println(ret);
    }
    public static void main7(String[] args) {
        int [] arry2 = {1,3,5,5,3,1,28};  // 7个数 每个都有2个相同、
        for(int i = 0;i < arry2.length;i++) {
            int count = 7;
            for(int j = 0;j <arry2.length;j++) {
                if(arry2[i] == arry2[j]) {
                    count++;
                } else {
                    count--;
                }
            }
            if(count == 2) {
                System.out.println(arry2[i]);
            }
        }
    }
    public static void main6(String[] args) {
        int [] arry = {2,5,3,2,5};
        int count = 1;
        for(int i = 0;i < arry.length-1;i++) {
            if(count == 0) {
                count = 1;
            }
            if(arry[i]==arry[i+1]) {
                count++;
            } else {
                count--;
            }
            int temp = arry[i];
            arry[i] = arry[i+1];
            arry[i+1] = temp;
            if(count == 0) {
                System.out.println(arry[i+1]);
            }
        }
        System.out.println(count);
    }
    public static void main5(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int sum = 0;
        for(int i = 1;i <= n;i++) {
            int take = 1;
            for(int j = 1;j <= i;j++) {
                take = take * j;
            }
            sum += take;
        }
        System.out.println(sum);
    }
    public static void sequence(int[] arry) {
        int l = arry.length - 1;
        int i = 0;
        while (i < l) {
            while (arry[i] % 2 != 0) {
                i++;
            }
            while (arry[l] % 2 == 0) {
                l--;
            }
            if(i<l) {
                int temp = arry[i];
                arry[i] = arry[l];
                arry[l] = temp;
            }
        }
    }
    public static void main4(String[] args) {
        int [] arry = {1,3,4,5,6};
        sequence(arry);
        System.out.printf( Arrays.toString(arry));
    }
    public static int max3(int x ,int y, int i) {
        int j = max2(x,y);
        return max2(j,i);
    }
    public static int max2(int x,int y) {
        return (x > y ? x : y);
    }
    public static void main2(String[] args) {
        Scanner input = new Scanner(System.in);
        int x = input.nextInt();
        int y = input.nextInt();
        int i = input.nextInt();
        int h = max3(x,y,i);
        System.out.println(h);
    }
    public static void main1(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int sum = 1;
        for(int i = 1;i <= N;i++) {
            sum *= i;
        }
        System.out.println(sum);
    }
}
